Hybris UX Api icon

Hybris UX Api

(0 reviews)

TOBR Eligibility Check

This method is to check TOBR (Transfer of Billing Responsibility) eligibility for a billing account and its associated product lines.

URL
https://[localhost]:[port]/ecom-ux/v1/{businessId}/productTransferCheck
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUID, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/ecom-ux/ecom-ux/v1/PR/productTransferCheck' \
--header 'client_id: 12344' \
--header 'client_secret: 11111' \
--header 'X-Correlation-ID: {guid}' \
--header 'Content-Type: application/json' \
--data '{
    "billingAccount": {
        "id": "123456789",
        "ratingType": "postpaid"
    }
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
billingAccountobjectBilling account information for the TOBR eligibility checkY
billingAccount.idstringAccount identifier (e.g., 123456789)Y
billingAccount.ratingTypestringRating type of the billing account (postpaid, prepaid)Y
Response
{
    "billingAccount": {
        "id": "123456789",
        "ratingType": "postpaid",
        "@type": "BillingAccount",
        "characteristic": [
            {
                "name": "eligible",
                "valueType": "object",
                "value": {
                    "isEligible": true,
                    "reason": ""
                }
            }
        ]
    },
    "product": [
        {
            "id": "7871234567",
            "href": "https://host:port/productInventoryManagement/v4/product/7871234567",
            "isCustomerVisible": true,
            "product": [
                {
                    "id": "PI-00123456"
                }
            ],
            "productCharacteristic": [
                {
                    "name": "eligible",
                    "valueType": "object",
                    "value": {
                        "isEligible": true,
                        "reason": ""
                    }
                }
            ]
        },
        {
            "id": "7879876543",
            "href": "https://host:port/productInventoryManagement/v4/product/7879876543",
            "isCustomerVisible": true,
            "productCharacteristic": [
                {
                    "name": "eligible",
                    "valueType": "object",
                    "value": {
                        "isEligible": true,
                        "reason": ""
                    }
                }
            ]
        },
        {
            "id": "7875551234",
            "href": "https://host:port/productInventoryManagement/v4/product/7875551234",
            "isCustomerVisible": true,
            "productCharacteristic": [
                {
                    "name": "eligible",
                    "valueType": "object",
                    "value": {
                        "isEligible": false,
                        "reason": "Line has an active suspension"
                    }
                }
            ]
        }
    ]
}
Definitions

Each of the response parameters is detailed.

nametypedescription
billingAccountobjectBilling account eligibility result object
billingAccount.idstringAccount identifier (e.g., 123456789)
billingAccount.ratingTypestringRating type of the billing account (postpaid, prepaid)
billingAccount.@typestringObject type identifier (BillingAccount)
billingAccount.characteristicarrayArray of eligibility characteristics for the billing account
billingAccount.characteristic.namestringName of the characteristic (eligible)
billingAccount.characteristic.valueTypestringData type of the characteristic value (object)
billingAccount.characteristic.valueobjectEligibility result object
billingAccount.characteristic.value.isEligiblebooleanIndicates whether the billing account is eligible for TOBR (true/false)
billingAccount.characteristic.value.reasonstringReason for ineligibility; empty string if eligible
productarrayArray of product lines associated with the billing account
product.idstringProduct line identifier (e.g., MSISDN)
product.hrefstringReference URI to the product in the product inventory
product.isCustomerVisiblebooleanIndicates whether the product line is visible to the customer
product.productarrayArray of related product references
product.product.idstringRelated product identifier (e.g., plan Instance ID)
product.productCharacteristicarrayArray of eligibility characteristics for the product line
product.productCharacteristic.namestringName of the characteristic (eligible)
product.productCharacteristic.valueTypestringData type of the characteristic value (object)
product.productCharacteristic.valueobjectEligibility result object
product.productCharacteristic.value.isEligiblebooleanIndicates whether the product line is eligible for TOBR (true/false)
product.productCharacteristic.value.reasonstringReason for ineligibility (e.g., "Line has an active suspension"); empty if eligible
Account Level inEligibility Reasons
ConditionError Message
If Billing Account is not activeTOBR cannot be initiated. The Account is not active
If Billing Account age is less than 6 monthsTOBR cannot be initiated. Account is not more than 6 months
If Billing Account status is not CurrentTOBR cannot be initiated. Account has past-due balance
If fraud flag is true on Billing AccountTOBR cannot be initiated. Account is flagged as RAFM
If Billing Account has Active Payment Plan (Postpaid only)TOBR cannot be initiated. Account has an active Payment Plan
Line Level inEligibility Reasons
ConditionError Message
If Line has Open orderNot Eligible. Open Order Case Exists
If Line has open TOBR Request CaseNot Eligible. Open TOBR Request Case Exists
If Line has open Port Out CaseNot Eligible. Open Port Out Case Exists
If Primary Line has wearable linkedNot Eligible. First disconnect the wearable or unpair from Primary line and try again
If Line is not ActiveNot Eligible. Line not active
If Line has Pending Device InstallmentNot Eligible. Installment needs to be paid off
If Line has accessoryNot Eligible. First disconnect the accessory from Primary line and try again

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method PATCH not allowed for : /productTransferCheck"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error"
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation POST /productTransferCheck for Business Id: xxxx not implemented"
    }]
  }

Reviews